<?php

// GNU [A]GPLv+3 here

include('upload.php');
include('download.php');

header("Content-Type: text/plain");

if ( isset($_GET['action']) )
{
	if ( $_GET['action'] == 'upload' ) { Upload(); } else
	if ( $_GET['action'] == 'download' ) { Download(); }
	else { echo '404 No such action'; }
}
else
{
	echo '400 Usage: ?action=<Action>';
}

?>
